package com.example.demo.config;

import jcifs.smb.NtlmPasswordAuthentication;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;



@Data
@Component
public class InitAuth {

    @Value("${mbfe.username}")
    private String username;

    @Value("{mbfe.password}")
    private String password;


    public  NtlmPasswordAuthentication getAuth(){
        return  new NtlmPasswordAuthentication(null,username,password);
    }

}
